package com.wzdigit.wms.basic.client.request.basic;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 批次属性规则明细 批量创建输入
 * @author yangdongjie
 * @LotAttr.java
 * @2021年1月19日下午2:01:04
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class CreateUpdateLotAttrDtlListRequest implements Serializable {

	private static final long serialVersionUID = -771182495369317343L;

	/**
	 * 批次属性ID
	 */
	@ApiModelProperty(value = "批次属性ID", required = true)
	@NotNull(message = "批次属性ID不能为空")
    private Integer lotAttrId;

	/**
	 * 批次属性明细集合
	 */
	@ApiModelProperty(value = "批次属性明细集合", required = true)
	@NotEmpty(message = "批次属性明细集合不能为空")
	private List<CreateLotAttrDtlRequest> dtls;
}